<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>多栏布局 间距个栏规则</title>

    <style>
      body {
        padding: 20px;
        font: 1em Helvetica Neue, Helvetica, Arial, sans-serif;
      }

      * {
        box-sizing: border-box;
      }

      p {
        margin: 0 0 1em 0;
      }

      .container {
        width: 500px;
        border: 5px solid rgb(111, 41, 97);
        border-radius: 0.5em;
        padding: 10px;
        column-width: 120px;
        column-gap: 20px;
        column-rule: 4px dotted #000;
      }

      .container p {
        page-break-inside: avoid;
        break-inside: avoid;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <p>
        Pea horseradish azuki bean lettuce avocado asparagus okra. Kohlrabi
        radish okra azuki bean corn fava bean mustard tigernut jícama green bean
        celtuce.
      </p>
      <p>
        Grape silver beet collard greens avocado quandong fennel gumbo
        black-eyed pea watercress potato tigernut corn groundnut. Chickweed okra
        pea winter purslane coriander yarrow sweet pepper radish garlic brussels
        sprout
      </p>

      <p>
        Groundnut summer purslane earthnut pea tomato spring onion azuki bean
        gourd. Gumbo kakadu plum komatsuna black-eyed pea green bean zucchini
        gourd winter purslane silver beet rock melon radish asparagus spinach.
      </p>
    </div>
  </body>
</html>
